<?php
/**
 * Created by: shauan.
 * Date: 17/08/14 - 11:09
 */
\core\App::uses('Routes','core');


\core\Routes::connect('informatica',array('controller'=>'index','action'=>'list','param'=>array('id','carteira','date','nome')));

\core\Routes::connect('user',array('controller'=>'grupocategorias','action'=>'view','param'=>array('id','nome','sobrenome')));
\core\Routes::connect('user',array('controller'=>'categorias','action'=>'edit','param'=>array('id')));
\core\Routes::connect('user',['controller'=>'recoverpassword','action'=>'intermed','param'=>['action','metodo', 'key','email','user']]);
\core\Routes::connect('user',['controller'=>'recoverpassword','action'=>'unimed','param'=>['action','metodo', 'key','email','user']]);

\core\Routes::connect('beneficiario',array('controller'=>'boletospf','action'=>'generateboleto','param'=>array('venda','parcela')));
\core\Routes::connect('beneficiario',array('controller'=>'quitacaoanual','action'=>'view','param'=>array('referencia')));
\core\Routes::connect('beneficiario',array('controller'=>'guiamedico','action'=>'pdf','param'=>array('classificacao','especialidades', 'medico')));

\core\Routes::connect('recepcao',array('controller'=>'boletospf','action'=>'generateboleto','param'=>array('venda','parcela','carteira')));
\core\Routes::connect('recepcao',array('controller'=>'quitacaoanual','action'=>'view','param'=>array('referencia','contrato','carteira')));
\core\Routes::connect('recepcao',array('controller'=>'debitoautomatico','action'=>'pdf','param'=>array('cpf','carteira_beneficiario',  'telefone', 'endereco', 'cidade', 'banco', 'agencia', 'conta_corrente', 'vencimento', 'valor')));

\core\Routes::connect('cooperado',array('controller'=>'demonstrativofinanceiro','action'=>'view','param'=>array('referencia','contrato','tipo')));
\core\Routes::connect('prestador',array('controller'=>'demonstrativofinanceiro','action'=>'view','param'=>array('referencia','contrato','tipo')));

\core\Routes::connect('empresa',array('controller'=>'boletospj','action'=>'generateboleto','param'=>array('venda','parcela')));


